#!/usr/local/bin/python3
# -*- coding:utf8 -*-
# Author Aaron
# 2017-03-31 22:46:05

import RPi.GPIO as GPIO
import time
from  datetime import datetime
from lcd1602 import LCD1602

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
rs_pin = 37
e_pin = 35
d4_pin = 33
d5_pin = 31
d6_pin = 29
d7_pin = 38
time.sleep(2)
lcd = LCD1602(rs_pin, e_pin, d4_pin, d5_pin, d6_pin, d7_pin)

lcd.lcd_string("Testing ....", lcd.LCD_LINE_1)
lcd.lcd_string("And it works!", lcd.LCD_LINE_2)

time.sleep(1000000000)
lcd.cleanup()
